import request from '@/untils/request.js'

// 获取用户的登录信息 token api
export const getUserLogin=data=>{
    return request({
        method:"Post",
        url:"/users/login",
        data
    })
}

// 注册api
export const getUserReg=data=>{
    return request({
        method:"Post",
        url:"/users/reg",
        data
    })
}

//修改用户个人信息 api
export const changeUserInfo = data=>{
    return request({
        method:"Post",
        url:'/users/updata/personal',
        data
    })
}

//验证用户
export const findUserInfo = data=>{
    return request({
        method:"Post",
        url:'/users/verify',
        data
    })
}